<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	'List',
);

if(isset(Yii::app()->session['adminUser'])){
	$this->menu=array(
		array('label'=>'Create User', 'url'=>array('create')),
	);
}else{
	$this->menu=array(
		array('label'=>'- No Action -', 'url'=>array('')),
	);
}
/*
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#user-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
*/
?>

<h1>List Users</h1>

<?php


$myclass = get_class($this);
$myclass= strstr($myclass,'Controller',true);
$tempFullAction=false;

if(isset(Yii::app()->session['adminUser']) ){
	$tempFullAction=true;
}

$this->widget('application.extensions.tablesorter.Sorter', array(
    'data'=>$records,
    'columns'=>array(
		'employee_name',
		'level',
		'status',
	),
	'filters'=>array(
        '',
        'filter-select',
        'filter-select',
    ),
    'fullAction'=>$tempFullAction,
    'view'=>$myclass,
	'model'=>1,
));

?>